package com.itheima.springboot_condition.condition;

import org.springframework.context.annotation.Conditional;

import java.lang.annotation.*;


//---------创建自定义注解----------

//@Target注解的范围
@Target({ElementType.TYPE, ElementType.METHOD})
//@Retention注解生效时机
@Retention(RetentionPolicy.RUNTIME)
//@Documented表示生成的doc文档
@Documented
@Conditional(ClassCondition.class)
public @interface ConditionOnClass {
    String[] value();
}
